"""caesar_blog URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
import os
from django.urls import path,include
from manager.views import *
from django.conf.urls.static import static
from manager.views.manager import *
from manager.views.front import *
from django.conf import settings

urlpatterns = [
    path('manager/',include('manager.urls')),
    path('pcgetcaptcha/',pcgetcaptcha),
    # 前台路由
    path('caesarblog/',fornt_index),
    # 列表
    path('show/<int:id>.html/', show, name='show'),
    path('show<int:id>.html/', show_art, name='show'),
    path('cateList.html/',list_news),
    path('get_cate_articles/',get_cate_articles)
] + static(settings.MEDIA_URL, document_root=os.path.join(settings.BASE_DIR, 'art_upload'))
    # 配置上传文件访问路径
